//
//  TimeSelectorVC.h
//  YueYueSpecailCarDriver
//
//  Created by 李亚军 on 17/2/20.
//  Copyright © 2017年 黄旺鑫. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TimeSelectorVC;
@protocol TimeSelectorVCDelegate <NSObject>

@optional
/**
 时间选择器
 
 @param pickView UIPickerView
 @param row 行
 @param component 列
 */
- (void)timeSelectorVC:(TimeSelectorVC *)timeSelectorVC pickView:(UIPickerView *)pickView didSelectRow:(NSInteger)row inComponent:(NSInteger)component;

@end

@interface TimeSelectorVC : UIViewController


/**
 初始化时间选择器
 */
+ (TimeSelectorVC *)initTimeSelectorVC;

@property(nonatomic , copy) NSString *popViewTitle;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

/**
 显示时间选择弹出框
 */
- (void)show;


/**
 隐藏时间选择弹出框
 */
- (void)dismiss;


/**
 数据源
 */
@property(nonatomic , strong) NSArray *dataSource;

@property(nonatomic , assign) id <TimeSelectorVCDelegate>delegate;

@property(nonatomic , copy) void(^confirmActionBlock)();

@property (weak, nonatomic) IBOutlet UIPickerView *pickView;

@end
